//
//  WarriorSkill.m
//  FrameWork
//
//  Created by Eagle on 6/23/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "WarriorSkill.h"
#import "Parameter.h"

@implementation WarriorSkill

@end


@implementation EffectBaGua
@synthesize lastTime = _lastTime;
@synthesize range = _range;
@synthesize slowDown = __slowDown;

+(id) bagua
{
	EffectBaGua *bagua = nil;
	if ((bagua = [super node])) 
	{
		bagua.lastTime = [[Parameter sharedParameter] baGuaLastTime];
		bagua.range = [[Parameter sharedParameter] baGuaRadius];
		bagua.slowDown = 0.5;
	}
	
	return bagua;
}


@end



@implementation EffectTouQu
@synthesize lastTime = _lastTime;
@synthesize range = _range;

+(id) touqu
{
	EffectTouQu *touqu = nil;
	if ((touqu = [super node])) 
	{
		touqu.lastTime = [[Parameter sharedParameter] touQuLastTime];
		touqu.range = [[Parameter sharedParameter] touQuRadius];
	}
	return touqu;
}

@end


@implementation EffectLuoLei
@synthesize takeTime = _takeTime;
@synthesize range = _range;
@synthesize attack = _attack;

+(id) luolei:(int) level
{
	EffectLuoLei *luolei = nil;
	if((luolei = [super node]))
	{
		luolei.takeTime = [[Parameter sharedParameter] luoLeiAttackTime:level];
		luolei.range = [[Parameter sharedParameter] luoLeiRadius:level];
		luolei.attack = [[Parameter sharedParameter] luoLeiAttack:level];
	}
	return luolei;
}

@end